package com.wrupple.muba.catalogs.domain;

import com.google.gwt.core.client.JavaScriptObject;

public final class JsCatalogKey extends JavaScriptObject implements CatalogKey {

	public static final String ID_FIELD = "id";
	public static final String NAME_FIELD = "name";

	protected JsCatalogKey() {
		super();
	}

	@Override
	public native String getCatalog() /*-{
		return this.catalog;
	}-*/;

	@Override
	public native String getId() /*-{
		return String(this.id);
	}-*/;

	@Override
	public native String getName()/*-{
		return this.name;
	}-*/;

	@Override
	public native String getImage()/*-{
		return this.image;
	}-*/;

	@Override
	public native String getValue() /*-{
		if(this.value==undefined || this.value==null ){
			return null;
		}else{
			return String(this.value);
		}
	}-*/;

	public native void setName(String name) /*-{
		this.name=name;
}-*/;

	public  native void setCatalog(String catalog) /*-{
	this.catalog=catalog;
}-*/;

}
